package com.ruoyi.user.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 人员信息对象 t_qb_user
 *
 * @author lzhj
 * @date 2021-01-17
 */
public class QbUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 证件号
     */
    @NotBlank(message = "证件号不能为空")
    @ApiModelProperty(value = "证件号,20字")
    @Excel(name = "证件号")
    private String zjh;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名,30字")
    @Excel(name = "姓名")
    private String userName;

    /**
     * 人员类别
     */
    @NotBlank(message = "人员类别不能为空")
    @ApiModelProperty(value = "人员类别")
    @Excel(name = "人员类别")
    private String category;

    /**
     * 审核状态
     */
    @ApiModelProperty(value = "审核状态")
    @Excel(name = "审核状态")
    private String status;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    @Excel(name = "价格")
    private Double price;

    @ApiModelProperty(value = "微信绑定id")
    private String userWxId;

    private String openId;

    private String categoryName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setZjh(String zjh) {
        this.zjh = zjh;
    }

    public String getZjh() {
        return zjh;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice() {
        return price;
    }

    public String getUserWxId() {
        return userWxId;
    }

    public void setUserWxId(String userWxId) {
        this.userWxId = userWxId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("zjh", getZjh())
                .append("userName", getUserName())
                .append("category", getCategory())
                .append("status", getStatus())
                .append("price", getPrice())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
